﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace HZYProject.Domain
{

    /// <summary>
    /// 试卷表
    /// </summary>
    public class TestPaper
    {
        /// <summary>
        /// 试卷编号
        /// </summary>
        public Guid TestPaperID { get; set; }

        /// <summary>
        /// 试卷名称
        /// </summary>
        
        [StringLength(50)]
        public string Title { get; set; }

        /// <summary>
        /// 试卷描述
        /// </summary>
        public string Content { get; set; }

        /// <summary>
        /// 试卷状态
        /// </summary>
        public TestPageStatus Status { get; set; }

        /// <summary>
        /// 试题数量
        /// </summary>
        public int QCount { get; set; }

        /// <summary>
        /// 课程编号
        /// </summary>
        public Guid CourseID { get; set; }

        /// <summary>
        /// 导航属性-所属课程
        /// </summary>
        public virtual Course Course { get; set; }

    }

    public enum TestPageStatus
    {
        [Display(Name = "组卷中")]
        Loadding = 1,
        [Display(Name = "正常")]
        Normal = 2,
        [Display(Name = "停用")]
        Stop = 3
    }
}
